import React, {PureComponent} from "react"
import ImageLoader from 'react-imageloader'
import { LoadingOutlined } from '@ant-design/icons';

export default class ZrImageLoader extends PureComponent {
	render() {
		const {src,text} = this.props
		return (
            <ImageLoader src={src}>
                <div>
                    <LoadingOutlined />
                    {text ? <div>text</div> : undefined}
                </div>
            </ImageLoader>
        );
	}
}
